/*
 * AutCatInvIndexer.h
 *
 *  Created on: Nov 3, 2011
 *      Author: zwx
 */

#ifndef AUTCATINVINDEXER_H_
#define AUTCATINVINDEXER_H_
#include "../Helper/FileHelper.h"
#include "../Helper/StringHelper.h"
#include "../Include/includes.h"
using namespace std;

class AutCatInvIndexer {
private:
	static const int INDEX_BARREL_SIZE = 8192;
public:
	AutCatInvIndexer();
	virtual ~AutCatInvIndexer();
	void makeAutInvIndex(string);
	void makeCatInvIndex(string);
	void makeIndex(string);
	string makeLine(string, string, string);
	void FlushBuffer(ofstream&, FileHelper&);
};

#endif /* AUTCATINVINDEXER_H_ */
